home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / vblank1d.arc / VBLANK1D.DOC < prev   
Text File  |  1990-10-05  |  4KB  |  84 lines

  1.                         VBLANK VGA Screen Blanker
  2.                             Uncopyrighted by
  3.  
  4.                           R. M. Utter, ProLogic
  5.                             9598 Union Street
  6.                         Scottsville, New York USA
  7.                                  14546
  8.  
  9.                      rather late in the 20th century
  10.  
  11. -------------------------------------------------------------------------------
  12. In this litigious age, I feel obligated to include the following
  13.  
  14.               Express Disclaimer Of Warranty And Liability.
  15.  
  16. VBLANK is a VGA screen blanker. It is _not_ a CGA, MCGA, EGA or any-other-GA
  17. screen blanker. Its only mission is to blank the screen of a VGA monitor after
  18. 4+ minutes of keyboard inactivity, while occupying as little RAM as possible.
  19. VBLANK has been in active and unfailing use on my system for many months. Should
  20. you try it on your system only to have your monitor/video card/CPU/whatever
  21. smoke or melt--well, I'll feel badly. I most certainly won't be liable. You do,
  22. after all, have VBLANK's source code, and with it, fair warning of exactly how
  23. the program works. It works rather well, I think. Having gotten that out of the
  24. way...
  25. -------------------------------------------------------------------------------
  26.  
  27. Herewith, version 1d of VBLANK.EXE, a small, VGA-only, screen blanker TSR. See
  28. the end of this note for details about the trifling differences between 1d and
  29. the previous version.
  30.  
  31. In response to problems reported by other users, this additional information,
  32. not to mention another program, described below, is included.
  33.  
  34. VBLANK version 1d blanks and unblanks your VGA monitor via hardware.
  35. Specifically, it sets or clears bit 5 of the VGA clocking mode register. Earlier
  36. VBLANK versions used BIOS interrupts to accomplish the same task. But, this
  37. change eliminates the possibility that VBLANK won't work with DOS/BIOS versions
  38. before 3.3. (Why anyone would install VGA video on a system incapable of
  39. supporting it properly is another question...)
  40.  
  41. VBLANK is a TSR (Terminate and Stay Resident) program. It relies on the
  42. cooperation of other TSRs which intercept the DOS timer and keyboard interrupts
  43. to work correctly. A crudely designed TSR loaded together with VBLANK can
  44. entirely disable VBLANK operation. The rather obvious symptom is that the
  45. screen never goes blank, no matter how long you wait.
  46.  
  47. BLANKVGA.EXE is intended to eliminate the possibility that VBLANK won't work on
  48. your system due to a hardware incompatibility. Simply execute BLANKVGA. If your
  49. VGA monitor goes blank for a period of about three seconds, then you can be sure
  50. that VBLANK will work if another TSR doesn't interfere with it. If the screen
  51. doesn't go blank, then your VGA card isn't totally VGA-compatible, and VBLANK
  52. won't work.
  53.  
  54. Next, execute VBLANK from the DOS command line, then sit back and relax. If
  55. BLANKVGA worked, then you can expect VBLANK to blank the screen about 4.5
  56. minutes after you press <Enter>.
  57.  
  58. Assuming that all has gone well so far, feel free to add a line invoking VBLANK
  59. to your AUTOEXEC.BAT, then reboot. If VBLANK now fails to blank the screen
  60. after 4.5 minutes of k/b inactivity, then another TSR is interfering with its
  61. operation. In this case, reorder the lines in AUTOEXEC.BAT which invoke TSRs.
  62. The best approach, probably, is to make VBLANK the last TSR to execute. If this
  63. doesn't work, then place VBLANK at the top of the list.
  64.  
  65. --------------------------------------------------------------------------------
  66. Version 1d represents only the most minimal improvement over the previous
  67. version. Two changes were made--
  68.  
  69. 1] VBLANK's two ISRs now exit via a JMP to the saved interrupt vectors rather
  70.    than by the arcane method (PUSH the vector onto the stack, then RET) used
  71.    previously. Each ISR's processing now takes perhaps a microsecond less than
  72.    it did before.
  73.  
  74. 2] The modification above made it possible to reduce VBLANK's RAM allocation by
  75.    one paragraph (16 bytes).
  76.  
  77. 3] I discovered, to my horror, that my choice of INT 8, rather than INT 1CH,
  78.    as the source of the clock interrupt was a poor one. On my system, at least,
  79.    there were occasional instances where the DOS date wasn't updated at
  80.    midnight. While I don't know the root cause of the problem, switching to
  81.    INT 1CH seems to have cured it.
  82.  
  83. Direct comments and queries to me via netmail at 1:260/226.
  84.